import request from './request'

// 资产管理API
export const assetsApi = {
  // 查询资产列表
  getAssetsList(data) {
    return request({
      url: '/assets/find',
      method: 'post',
      data
    })
  },

  // 添加资产
  addAssets(data) {
    return request({
      url: '/assets/insert',
      method: 'post',
      data
    })
  },

  // 修改资产
  updateAssets(data) {
    return request({
      url: '/assets/update',
      method: 'put',
      data
    })
  },

  // 删除资产
  deleteAssets(id) {
    return request({
      url: '/assets/delete',
      method: 'delete',
      params: { id }
    })
  }
}